package com.wei.health.model.dto;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Setter
@Getter
public class BodyInfoSaveDto implements Serializable {
	
	private static final long serialVersionUID = 80577054311531170L;

	private String nickName;
	@NotNull(message = "健康状态不能为空")
	private String health;
	@NotNull(message = "外出状态不能为空")
	private String goOut;
	@NotNull(message = "工作状态不能为空")
	private String workState;
	@NotNull(message = "体温不能为空")
	@Range(min = 33, max = 45, message = "体温只能在33到45之间")
	private Double temperature;
	// 步数
	private String notice;

}